package com.wingice.exception;

/**
 * @author 胡昊
 * Description: 业务异常错误码
 * Date: 2019/7/3
 * Time: 10:40
 * Create: DoubleH
 */
public enum BusinessCode {
    /**
     * 业务异常
     */
    ACTIVITY_USER_ID_NOT_ALLOW(10000, "不允许删除他人活动"),

    /**
     * 参数异常
     */
    ACTIVITY_NAME_NOT_EXIST(30000, "活动名称不能为空"),
    ;

    private Integer code;
    private String msg;

    BusinessCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

